<?php
class ClientsController extends AppController{
	
	var $uses = array("User","Group","Company");
	
	public function index(){
		
		$params = array(
			'conditions' => array('Company.user_id' => $this->current_user['User']['id'])
		);
		
		$company = $this->Company->find('first',$params);
		
		$this->set('company',$company['Company']);
		$this->set('objekts',$company['Objekt']);
		
	}		
	
}